<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{font-size:35px;line-height:40px;}
        input{line-height:40px;font-size:35px;}
    </style>

    <script type="text/javascript" src="../js/jquery-1.8.3.min.js"></script>
</head>
<body>

<form action="/initSign" method="post">

    <p><label>幼儿园id:</label><input type="text" name="eid" id="eid" value="11" /><br/></p>
    <p><label>出勤次数:</label><input type="text" name="times" id="times"value="" /><br/></p>
    <p><label>幼儿姓名:</label><input type="text" name="name"id="name" value="" /><br/></p>

    <input type="button" value="录入" onclick = "return send();" style="line-height:40px;">
</form>
<script>
    function send(){
        $.ajax({
            url:"/initSign",
            type:"POST",
            data:"eid="+$("#eid").val()+"&times="+$("#times").val()+"&name="+$("#name").val(),
            success:function(data){
                if(data.success == true){
                    alert("成功!");
                }else{
                    alert(data.info);
                }
            }
        });
        return false;
    }

</script>

</body>
</html>